﻿using System;
using System.Web.Security;

namespace FatFreeFitness.membership
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Login1_LoggedIn(object sender, EventArgs e)
        {
            if (Roles.IsUserInRole(Login1.UserName, "management"))
            {
                Response.Redirect("~/_secured/management");
            }
            else
            {
                Response.Redirect("~/_secured/members");
            }
        }
    }
}